﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BootstrapAdmin.DataAccess.Models.Production;

/// <summary>
/// 关键物料追踪信息
/// </summary>
[Table("ops_trackmaterial")]
public class TrackMaterial
{
    [Key]
    public int Id { get; set; }

    /// <summary>
    /// 工站
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "工站")]
    public string? Station { get; set; }

    /// <summary>
    /// SN
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "SN")]
    public string? SN { get; set; }

    /// <summary>
    /// 物料条码
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "物料条码")]
    public string? Barcode { get; set; }

    /// <summary>
    /// 记录时间
    /// </summary>
    [Display(Name = "记录时间")]
    public DateTime CreatedAt { get; set; }
}
